{extend name="main/index" /}
{block name="main"}

<div class="content-page">
	<div class="content">
		<form action="{:url('admin/Goods/save')}" method="post">
			<input type="hidden" value="{$data.id}" name="id">
			<div class="form-group">
				<label for="exampleInputText1">商家名称</label>
				<input type="text" class="form-control" id="exampleInputEmail1" name="name" required value="{$data.name}">
			</div>
			<div class="form-group">
				<label for="exampleInputText1">地址</label>
				<input type="text" class="form-control" id="exampleInputEmail1" name="address" value="{$data.address}">
			</div>
			<div class="form-group">
				<label for="exampleInputText1">最低价格</label>
				<input type="text" class="form-control" id="exampleInputEmail1" name="price" value="{$data.price}">
			</div>
			<div class="form-group">
				<label for="exampleInputText1">电话</label>
				<input type="text" class="form-control" id="exampleInputEmail1" name="tel" value="{$data.tel}">
			</div>
			<div class="form-group">
				<label for="exampleInputText1">简述</label>
				<textarea class="form-control" rows="10" name="information">{$data.information}</textarea>
			</div>
			<div class="form-group">
				<input type="radio" name="isbreaker" value="1" {if $data.isbreaker==1} checked {/if}>不提供早餐
				<input type="radio" name="isbreaker" value="2" {if $data.isbreaker==2} checked {/if}>提供早餐
			</div>
			<div class="form-group">
				<input type="radio" name="wifi" value="1" {if $data.wifi==1} checked {/if}>无WiFi
				<input type="radio" name="wifi" value="2" {if $data.wifi==2} checked {/if}>有WiFi
			</div>
			<div class="form-group">
				<input type="radio" name="parking" value="1" {if $data.parking==1} checked {/if}>无停车场
				<input type="radio" name="parking" value="2" {if $data.parking==2} checked {/if}>有停车场
			</div>
			<button type="submit" class="btn btn-default">确认</button>
			<button type="reset" class="btn btn-default">重置</button>
		</form>
	</div>
</div>

{/block}